package common

import (
	"fmt"

	"bigmodel/tools"
)

func GetIdString(id int64, prefix string) string {
	return fmt.Sprintf("%s%s", prefix, tool.GetSQID(id))
}

func DecodeIdString(id string, prefix string) int64 {
	return tool.DecodeSQID(id[len(prefix):])
}
